//
//  HMTestViewController.swift
//  微博
//
//  Created by 程双岐 on 16/9/20.
//  Copyright © 2016年 heima. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        addNavButton()
    }
    
    private func addNavButton(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
        
    }
    
    func pushAction()
    {
        let testViewController = HMTestViewController()
        navigationController?.pushViewController(testViewController, animated: true)
        
    }



}
